Using this function returns the name part of the indicated file, with the extension but without the path
filename_name(fname);
Argument | Description |
---|---|
fname | The file to use. |
String
name =
filename_name(file_find_first("C:\Games\*.doc", 0));
The above code gets the name (as a string) of the first "doc" type file found in the specified directory.